import Request from "./request.js";
const API = {
	info: "/app/bus/order/negotiate/info/generate",
	send: "/app/bus/order/negotiate/info/send",
	createOrder: '/app/bus/order/negotiate/info/negotiate/create',
	detail: '/app/bus/order/negotiate/info/info'
};

// 生成协商信息
export const negotiateInfo = (params) => Request.post(API.info, {}, {
	data: params
});

// 发送协商信息
export const negotiateSend = (params) => Request.post(API.send, {}, {
	data: params
});

// 去下单（协商订单）-消费者调用
export const createOrder = (params) => Request.post(API.createOrder, {}, {
	data: params
})
//查详情
export const orderDetail = (params) => Request.get(`${API.detail}/${params}`);